<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRecommendCreditCardsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('recommend_credit_cards', function (Blueprint $table) {
            $table->comment = '信用卡热门推荐';
            $table->increments('id');
            $table->string('card_img',255)->default('')->comment('银行卡图片');
            $table->string('title',255)->default('')->comment('标题');
            $table->string('subtitle',255)->default('')->comment('副标题');
            $table->string('key_word',255)->default('')->comment('关键字');
            $table->string('url',255)->default('')->comment('超链接');
            $table->tinyInteger('status')->default(2)->comment('状态 1开启 2关闭');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('recommend_credit_cards');
    }
}
